<?php
//namespace Api\controllers;
//use Module\ApiController;

/**
 * @name IndexController
 * @author root
 * @desc 默认控制器
 * @see http://www.php.net/manual/en/class.yaf-controller-abstract.php
 */
class IndexController extends \Module\Api
{
    public function init()
    {
//        parent::init();
    }

    public function indexAction()
    {
        $this->getView()->assign("content", "Hello Yaf!");
    }

    public function testAction()
    {
        $a = \App\Models\Admin::all();
        var_dump($a);
        $this->getView()->assign("content", "Hello Yaf!");
    }
}
